import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)

// 统一导出所有 Store
import { useUserStore } from "./models/userStore";
import { useCaptchaStore } from "./models/captchaStore";
import { useUserInfoStore } from "./models/userInfoStore";
import { useBankCardStore } from "./models/bankCardStore";
import { useLoanStore } from "./models/loanStore";
import { useFAQStore } from "./models/faqStore";

export { 
  useUserStore, 
  useCaptchaStore,
  useUserInfoStore,
  useBankCardStore,
  useLoanStore,
  useFAQStore
};
export default pinia;